package com.report.reportserver.mapper;

import java.util.*;
import com.report.reportserver.model.Student;
import org.apache.ibatis.annotations.Select;

public interface StudentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Student record);

    int insertSelective(Student record);

    Student selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    @Select("select * from r_student where name = #{name}")
    List<Student> selectByName(String name);

    @Select("select * from r_student where number = #{number}")
    Student selectByNumber(String number);

    @Select("select id from r_student")
    List<Integer> selectAllId();
}